package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("updateReservationTask")
public class UpdateReservationTask {
    @Autowired
    private IReservationService reservationService;

    public void updateReservation()
    {
        reservationService.updateReservationStatus();
        System.out.println("更新预约状态成功");
    }
}
